package com.demo.chapter12date;

import java.time.LocalTime;

//仅含有小时、分钟、秒、纳秒
public class LocalTimeDemo {

	public static void demo(){
		LocalTime time = LocalTime.of(13, 45, 20);
		System.out.println(time.getHour());
		System.out.println(time.getMinute());
		System.out.println(time.getSecond());

		LocalTime time2 = LocalTime.parse("13:45:20");
	}

	public static void main(String[] args) {
		demo();
	}

}
